﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="JWBSTAPP.TbBstFraudCollectAdd"
    CodeBehind="TbBstFraudCollectAdd.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>新增</title>
    <link href="../Styles/AddOrEditPage.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="../Styles/validationEngine.jquery.css" type="text/css"
        media="screen" charset="utf-8" />
    <script src="../Scripts/jQuery-1.9.0.js" type="text/javascript"></script>
    <script type="text/javascript" src="../Scripts/jquery.validationEngine-cn.js"></script>
    <script type="text/javascript" src="../Scripts/jquery.validationEngine.js"></script>
    <script type="text/javascript" src="../Scripts/CommonADEQ3.js"></script>
    <script type="text/javascript" src="../Scripts/alert/ymPrompt.js"></script>
    <link rel="stylesheet" type="text/css" href="../Scripts/alert/skin/qq/ymPrompt.css" />
    <script src="../Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
    <link href="../Scripts/DatePicker/skin/WdatePicker.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $().ready(function () {
            AddPage("TbBstFraudCollectForm", "../AjaxServer/ZPXXCJ/TbBstFraudCollectHandler.ashx");
        });

        function AddPage(formId, ashxUrl) {
            $("#" + formId).validationEngine('attach', {
                promptPosition: "topLeft", // OPENNING BOX POSITION, IMPLEMENTED: topLeft, topRight, bottomLeft,  centerRight, bottomRight
                //validationEventTriggers: "keyup",
                inlineValidation: false,
                success: false,
                failure: function () {

                },
                onValidationComplete: function (form, status) {
                    if ($("#txtyanzhengma").val() != $("#labyanzhen").html()) {
                        status = false;
                        $("#yzm").html("验证码不正确！"); return
                    } else {
                        $("#yzm").hide();
                    }
                    if (status == true) {
                        var formString = $("#" + formId).serialize() + "&action=01";
                        $.ajax({
                            type: "post",
                            data: formString,
                            url: ashxUrl,
                            success: function (message) {
                                window.parent.pageClick();
                                window.parent.tb_remove();
                            },
                            error: function (XMLHttpRequest, textStatus, errorThrown) {

                                alert(textStatus);
                            }
                        });
                    }
                }
            });
        }
    </script>
</head>
<body>
    <div class="container">
        <form id="TbBstFraudCollectForm" runat="server">
        <table class="mainTable">
            <tr>
                <td class="mainTable_TitleTd" colspan="4">
                    新增
                </td>
            </tr>
            <tr>
                <td class="mainTable_LeftTd">
                    <label for="texReceivedatetime">
                        <em>*</em>收到诈骗信息时间：</label>
                </td>
                <td class="mainTable_RightTd">
                    <input id="texReceivedatetime" name="texReceivedatetime" class="validate[required],Wdate"
                        type="text" size="30" value="" onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
                </td>
                <td class="mainTable_LeftTd">
                    <label for="texTel">
                        <em>*</em>来电显示的号码：</label>
                </td>
                <td class="mainTable_RightTd">
                    <input id="texTel" name="texTel" class="validate[required,minSize[3]]" type="text"
                        size="30" value="" />
                </td>
            </tr>
            <tr>
                <td class="mainTable_LeftTd">
                    <label for="texFraudtype">
                        <em>*</em>诈骗名义：</label>
                </td>
                <td class="mainTable_RightTd">
                    <select id="selFraudtype" runat="server" name="selFraudtype" style="height: 22px;
                        width: 213px" class="validate[required]">
                    </select>
                </td>
                <%-- <td class="mainTable_LeftTd">
                    <label for="texOperatorsname">
                        被举报号码所属运营商名称 来电显示号码为非手机号的名称为其他：</label>
                </td>
                <td class="mainTable_RightTd">
                    <input id="texOperatorsname" name="texOperatorsname" class="validate[required]" type="text"
                        size="30" value="" />
                </td>--%>
                <td class="mainTable_LeftTd">
                    <label for="texTelattribution">
                        被举报号码归属省：</label>
                </td>
                <td class="mainTable_RightTd">
                    <input id="texTelattribution" name="texTelattribution" type="text" size="30" value="" />
                </td>
            </tr>
            <tr>
                <%-- <td class="mainTable_LeftTd">
                    <label for="texOperatorscode">
                        被举报号码所属运营商代码 1 移动号码 2 联通 3 电信 0 其他（来电显示号码为非手机号的）：</label>
                </td>
                <td class="mainTable_RightTd">
                           <select id="selOperatorscode" runat="server" name="selOperatorscode" style="height: 22px;
                        width: 213px">
                    </select>
                </td>--%>
            </tr>
            <tr>
                <td class="mainTable_LeftTd">
                    <label for="texMsgcontent">
                        <em>*</em> 诈骗内容：</label>
                </td>
                <td class="mainTable_RightTd">
                    <input id="texMsgcontent" name="texMsgcontent" class="validate[required]" type="text"
                        size="30" value="" />
                </td>
                <td class="mainTable_LeftTd">
                    <label for="texInformername">
                        举报人姓名：</label>
                </td>
                <td class="mainTable_RightTd">
                    <input id="texInformername" name="texInformername" type="text" size="30" value="" />
                </td>
            </tr>
            <tr>
                <td class="mainTable_LeftTd">
                    <label for="texInformertel">
                        举报人电话：</label>
                </td>
                <td class="mainTable_RightTd">
                    <input id="texInformertel" name="texInformertel" type="text" size="30" value="" />
                </td>
                <td class="mainTable_LeftTd">
                    <label for="texInformercompany">
                        举报人单位：</label>
                </td>
                <td class="mainTable_RightTd">
                    <input id="texInformercompany" name="texInformercompany" type="text" size="30" value="" />
                </td>
            </tr>
            <tr>
                <%--  <td class="mainTable_LeftTd">
                    <label for="texFraudtypecontent">
                        诈骗名义具体内容：</label>
                </td>
                <td class="mainTable_RightTd">
                    <input id="texFraudtypecontent" name="texFraudtypecontent" class="validate[required]"
                        type="text" size="30" value="" />
                </td>--%>
            </tr>
            <tr>
                <td class="mainTable_LeftTd">
                    <label for="texRemark">
                        备注：</label>
                </td>
                <td class="mainTable_RightTd">
                    <input id="texRemark" name="texRemark" type="text" size="30" value="" />
                </td>
                <td class="mainTable_LeftTd">
                </td>
            </tr>
            <tr>
                <td class="mainTable_LeftTd">
                    <label for="texRemark">
                        <em>*</em>验证码：</label>
                </td>
                <td class="mainTable_RightTd">
                    <input id="txtyanzhengma" name="txtyanzhengma" type="text" class="validate[required]"
                        size="10" value="" runat="server" /><label id="yzm" style="color: Red"></label>
                </td>
                <td class="mainTable_LeftTd">
                    <asp:Label ID="labyanzhen" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="mainTable_ButtonTd" colspan="4">
                    <input class="button" type="submit" value="提交" runat="server" />
                </td>
            </tr>
        </table>
        </form>
    </div>
</body>
</html>
